// todo: 动态路由
export default [
  {name: '接口列表', icon: 'smile', path: '/list', component: './Index'},
  {name: '查看接口', icon: 'smile', path: '/interface_info/:id', component: './InterfaceInfo', hideInMenu: true},
  {
    path: '/user',
    layout: false,
    routes: [{name: '登录', path: '/user/login', component: './User/Login'},
      {name: '注册', path: '/user/register', component: './User/Register'},],

  },
  {
    path: '/order',
    name: '订单',
    icon: 'containerOutlined',
    component: './Order',
  },
  {
    path: '/myInterface',
    name: '我的接口',
    icon: 'appstoreOutlined',
    component: './User/MyInterface',
  },
  {
    path: '/admin',
    name: '管理页',
    icon: 'crown',
    access: 'canAdmin',
    routes: [
      {name: '接口管理', icon: 'table', path: '/admin/interface_info', component: './Admin/InterfaceInfo'},
      {
        name: '用户管理',
        icon: 'table',
        path: '/admin/user',
        component: './Admin/UserManager',
      },
      {
        name: '接口分析',
        icon: 'table',
        path: '/admin/interface_analysis',
        component: './Admin/InterfaceAnalysis',
      },
    ],
  },
  {name: '个人中心', icon: 'smile', path: '/user/info', component: './User/Info', hideInMenu: false},
  {path: '*', layout: false, component: './404'},
];



